using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace ReminderApp.ControlLibrary
{
    public partial class ucPopupMethod : UserControl
    {
        public ucPopupMethod()
        {
            InitializeComponent();
        }

        private void cbType_SelectedIndexChanged(object sender, EventArgs e)
        {
            pnPopupMethod.Controls.Clear();
            switch (cbType.SelectedIndex + 1)
            {
                case (int)PopupMethod.Text:
                    pnPopupMethod.Controls.Add(new ReminderApp.ControlLibrary.ucText());
                    break;
                case (int)PopupMethod.Image:
                    pnPopupMethod.Controls.Add(new ReminderApp.ControlLibrary.ucImage());
                    break;
                case (int)PopupMethod.Clip:
                    pnPopupMethod.Controls.Add(new ReminderApp.ControlLibrary.ucClip());
                    break;
            }
        }

        private void ucPopupMethod_Load(object sender, EventArgs e)
        {
            pnPopupMethod.Controls.Add(new ReminderApp.ControlLibrary.ucText());
        }
    }
}
